package com.googlecode.jwsm.security;

import java.io.Serializable;
import java.security.Principal;
import java.util.Properties;

public interface User extends Principal {
	public String getUsername();

    public Privilege[] getPrivileges();

    public void setProperty(String s, Serializable serializable);

    public Object getProperty(String s);

    public String[] getPropertyNames(String s);

    public Properties getProperties(String s);

    public boolean isAuthorized(String s);

    public boolean hasPrivilege(String s);
}